using System.Collections;
using Rdl;

namespace GTame.ReportParser
{

    public class ClassType
    {

        private string _ClassName;
        private string _InstanceName;

        public string ClassName
        {
            get
            {
                return _ClassName;
            }
            set
            {
                _ClassName = value;
            }
        }

        public string InstanceName
        {
            get
            {
                return _InstanceName;
            }
            set
            {
                _InstanceName = value;
            }
        }

        public ClassType()
        {
        }

        public Rdl.ClassType Write()
        {
            Rdl.ClassType classType = new Rdl.ClassType();
            System.Collections.ArrayList arrayList1 = new System.Collections.ArrayList();
            System.Collections.ArrayList arrayList2 = new System.Collections.ArrayList();
            if (_ClassName != null)
            {
                arrayList1.Add(_ClassName);
                arrayList2.Add(1);
            }
            if (_InstanceName != null)
            {
                arrayList1.Add(_InstanceName);
                arrayList2.Add(2);
            }
            classType.Items = arrayList1.ToArray();
            classType.ItemsElementName = (Rdl.ItemsChoiceType36[])arrayList2.ToArray(typeof(Rdl.ItemsChoiceType36));
            arrayList2 = arrayList1 = null;
            return classType;
        }

    } // class ClassType

}

